function MyOrder() {
};

MyOrder.instance = function() {
  return { trackId: MiscUtils.unique(),
           createdDate: SimpleDate.create(),
           disposal: MyOrderCancel.instance(),
           flag: '',
           type: '',
           date: SimpleDate.create(),
           price: 0,
           photo: MyOrderPackage.instance(),
           video: MyOrderPackage.instance(),
           note: '',
           purchaseItems: [],
           payments: [],
           customerId: 0,
           finished: 0,
           discount: 0,
           isOrderDiscountSolved: 0,
           isNoWeddingDaySolved: 0,
           isPayment1FirstSolved: 0,
           isPayment1SecondSolved: 0,
           isPayment1ThirdSolved: 0,
           isPayment1ForthSolved: 0,
           isPayment2FirstSolved: 0,
           isPayment2SecondSolved: 0,
           isPayment3FirstSolved: 0,
           isPayment3SecondSolved: 0,
           isPayment4Solved: 0,
           isBonusPaid: 0,
           admAppr: 0,
           discAdmAppr: 0
         }
};
